package wickethub.domain;

import javax.persistence.Entity;
import javax.persistence.Lob;

@Entity
public class Snippet extends Resource {
	
	@Lob private String code;
	
	public String getCode() {
		return code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null || !(obj instanceof Snippet)) {
			return false;
		}
		return ((Snippet)obj).getId().equals(this.getId());
	}
	
}